﻿<UserControl
    x:Class="ExampleApp.Views.PopupUserControlView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:ExampleApp.Views"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:View="using:StyleMVVM.View"
    View:ViewModel.Name="PopupUserControlViewModel"
    mc:Ignorable="d"
    Width="261"
    Height="150">
    <Grid Background="#EEEEEE">
        <TextBlock HorizontalAlignment="Left" Margin="58,54,0,0" FontSize="14"
                   TextWrapping="Wrap" Text="This is a Popup Window" VerticalAlignment="Top"/>
        <Button Content="Close" View:EventHandlers.Attach="Click => ClosePopup()"
                HorizontalAlignment="Left" Margin="58,76,0,0" VerticalAlignment="Top" Width="147"/>

    </Grid>
</UserControl>
